package com.project.easy.common.util.exception.file;

import com.project.easy.common.util.enums.exception.SysExceptionEnums;
import com.project.easy.common.util.exception.sys.AbstractSysException;
import com.project.easy.common.util.string.StringUtil;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2021/10/24 20:53
 * @description: 文件加载不存在
 */
public class FileNotExistException extends AbstractSysException {
    /**
     * Constructs a new runtime exception with {@code null} as its
     * detail message.  The cause is not initialized, and may subsequently be
     * initialized by a call to {@link #initCause}.
     */
    public FileNotExistException(String subMesg) {
        super(SysExceptionEnums.SYS_FILE_NOT_EXIST.getCode(), StringUtil.isBlank(subMesg) ? SysExceptionEnums.SYS_FILE_NOT_EXIST.getName() : subMesg);
    }
}
